import random

for i in range(20):
    print(random.randint(0, 2), end=', ')

for i in range(20):
    print(random.randrange(3), end=', ')

